#!/usr/bin/env python
# -*- coding:utf-8 -*-

from lib.console import Interface


def main():
    logo = """
 _______________________
< CMS Exploit Framework >
 -----------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\\
                ||----w |
                ||     ||

+ -- --=[ CMS Exploit Framework - %s ]
+ -- --=[ %-34s ]
+ -- --=[ %-34s ]
    """
    interface = Interface()
    print logo % (interface.version(),
                  "%d CMS" % interface.cms_num(),
                  "%d Plugins" % interface.plugins_num())
    while True:
        try:
            interface.cmdloop()
        except KeyboardInterrupt:
            print "Interrupt: use the 'exit' command to quit"

if __name__ == "__main__":
    main()